//先引入mockjs模块
import Mock from 'mockjs'
//把JSON数据格式引入进来
//webpack默认对外暴露的：图片、JsON数据格式
import banner from './banners.json'
import floor from './floor.json'

//mock数据
Mock.mock("/mock/banner", { code: 200, data: banner }) //模拟首页大轮播图
Mock.mock("/mock/floor", { code: 200, data: floor })//模拟首页小轮播图